package com.ggb.reactive.domain.dto

import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import lombok.Data

@Data
@Schema(title="员工登录 EmployeeLoginDTO")
data class EmployeeLoginDTO(
    @Schema(description = "用户名")
    @field:NotNull(message = "用户名不能为null")
    @field:NotBlank(message = "用户名不能为空")
    val username: String,
    @field:NotNull(message = "密码不能为null")
    @field:NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    var password: String
)
